from django.contrib import admin
from pyplog.pages.models import *

class PageAdmin(admin.ModelAdmin):
	fieldsets = (
		(None, {
			"fields" : ("title", "slug", "show_in_menu")
		}),
		("Content", {
			"fields" : ("markup", "content")
		}),
	)
	list_display = ("title", "slug")
	prepopulated_fields = { "slug" : ("title",) }
admin.site.register(Page, PageAdmin)